package com.nbsaas.boot.customer.rest.convert;

import com.nbsaas.boot.customer.data.entity.CustomerGroup;
import com.nbsaas.boot.customer.api.domain.response.CustomerGroupResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* 客户分组-实体对象转化成响应对象
*/

public class CustomerGroupResponseConvert  implements Converter<CustomerGroupResponse,CustomerGroup> {

    @Override
    public CustomerGroupResponse convert(CustomerGroup source) {
        CustomerGroupResponse  result = new  CustomerGroupResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

